//ShowModal.js
import React from 'react';
import { View } from 'react-native';
import RootSiblings from 'react-native-root-siblings'; //全局弹框组件
let sibling = null;
export const showModal = component => {
    sibling = new RootSiblings(component);
};
export const destroySibling = component => sibling && sibling.destroy();
export const update = (index, component) =>
    sibling && sibling.update(<View>{component}</View>);
